import request from '@/utils/request'

// 未开票订单/开票订单详情
export function apiCommercialVoucherRecordList(data) {
    return request({
        method: 'get',
        url: '/commercialVoucherRecord/list',
        params: data,
    })
}

// 开具中、已开具
export function apiCommercialVoucherList(data) {
    return request({
        method: 'get',
        url: '/commercialVoucher/list',
        params: data,
    })
}
// 开具发票
export function apiDoIssuingInvoices(data) {
    return request({
        method: 'post',
        url: '/commercialVoucherRecord/doIssuingInvoices',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}
// 根据所选行返回总金额
export function apiGetSelectListSumMoney(data) {
    return request({
        method: 'post',
        url: '/commercialVoucherRecord/getSelectListSumMoney',
        data: data,
        headers: {
            "Content-Type": "application/json"
        }
    })
}